<template>
	<view class="more">
		<view class="toast_green">
			如需更新以下信息，请联系平台
		</view>
		<view class="box">
			<view class="title">
				联系信息
			</view>
			<StepInput :title="'手机号码'" :require="false" class="mb">
				<view class="comlum_Y">
					<view class="size">
						{{query.contact_info.mobile}}
					</view>
				</view>
			</StepInput>
			<StepInput :title="'微信二维码'" :require="false" class="mb">
				<view class="comlum_Y">
					<image :src="query.contact_info.wechat_image" mode="aspectFill" class="img" @click.stop="$PREVIEW_IMAGE(query.contact_info.wechat_image)"></image>
				</view>
			</StepInput>
			<StepInput :title="'微信号'" :require="false" class="mb">
				<view class="comlum_Y">
					<view class="size">
						{{query.contact_info.wechat}}
					</view>
				</view>
			</StepInput>
			<StepInput :title="'服务门店'" :require="false" class="mb">
				<view class="comlum_Y">
					<view v-for="(item,index) in query.contact_info.shop_list" :key="index" class="size">
						{{item.shop_name}}
					</view>
				</view>
			</StepInput>
			<StepInput :title="'擅长领域'" :require="false">
				<view class="comlum_Y">
					<view v-for="(item,index) in query.contact_info.domain_list" :key="index" class="size">
						{{item.title}}
					</view>
				</view>
			</StepInput>
		</view>
		<view class="box">
			<view class="title">
				认证信息
			</view>
			<view class="row_x mb">
				<image :src="query.auth_info.rx_identity_image" mode="aspectFill" class="img" @click.stop="$PREVIEW_IMAGE(query.auth_info.rx_identity_image)"></image>
				<image :src="query.auth_info.gh_identity_image" mode="aspectFill" class="img" @click.stop="$PREVIEW_IMAGE(query.auth_info.gh_identity_image)"></image>
			</view>
			<StepInput :title="'身份证号'" :require="false" class="mb">
				<view class="comlum_Y">
					<view class="size">
						{{query.auth_info.identity}}
					</view>
				</view>
			</StepInput>
			<StepInput :title="'真实姓名'" :require="false" class="mb">
				<view class="comlum_Y">
					<view class="size">
						{{query.auth_info.name}}
					</view>
				</view>
			</StepInput>
			<StepInput :title="'性别'" :require="false" class="mb">
				<view class="comlum_Y">
					<view class="size">
						{{query.auth_info.gender ? '男' :'女'}}
					</view>
				</view>
			</StepInput>
			<StepInput :title="'出生日期'" :require="false">
				<view class="comlum_Y">
					<view class="size">
						{{query.auth_info.birthday}}
					</view>
				</view>
			</StepInput>
		</view>
		<view class="box">
			<view class="title">
				证书信息
			</view>
			<view class="img_box">
				<view v-for="(item,index) in query.cert_list" :key="index" class="imgs" style="margin-bottom: 20rpx;" @click="$PREVIEW_IMAGEARRAY(query.cert_list)">
					<image :src="item" mode="aspectFill" class="imgs"></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import StepInput from './components/StepInput.vue'
	import {
		coachmainMore
	} from '@/api/coach.js'
	export default {
		components: {
			StepInput
		},
		data() {
			return {
				query: {
					contact_info:{
						shop_list:[]
					}
				}
			}
		},
		onLoad() {
			this.getcoachmainMore()
		},
		methods: {
			getcoachmainMore() {
				coachmainMore().then(({
					data: res
				}) => {
					console.log('res', res);
					if (res.code == 1) {
						this.query = res.data
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background: #e9e9e9;
	}

	.more {
		display: flex;
		flex-direction: column;
		align-items: center;

		.toast_green {
			width: 750rpx;
			height: 72rpx;
			background: #73F0EA;
			font-size: 28rpx;
			font-family: PingFang SC, PingFang SC-Medium;
			font-weight: 500;
			text-align: left;
			color: #ffffff;
			display: flex;
			align-items: center;
			justify-content: center;

		}

		.box {
			margin-top: 32rpx;
			width: 702rpx;
			background: #ffffff;
			border-radius: 16rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			padding: 40rpx;

			.title {
				width: 100%;
				font-size: 32rpx;
				font-family: PingFang SC, PingFang SC-Heavy;
				font-weight: 800;
				text-align: center;
				color: #333333;
				display: flex;
				align-items: center;
				justify-content: center;
				padding-bottom: 40rpx;
			}

			.mb {
				margin-bottom: 48rpx;
			}

			.comlum_Y {
				display: flex;
				flex-direction: column;
				align-items: right;

				.size {
					font-size: 28rpx;
					font-family: PingFang SC, PingFang SC-Medium;
					font-weight: 500;
					text-align: right;
					color: #000000;
				}

				.img {
					width: 204rpx;
					height: 204rpx;
					background: rgba(0, 0, 0, 0.00);
					border-radius: 16rpx;
				}
			}

			.row_x {
				display: flex;
				flex-direction: row;
				align-items: center;
				justify-content: space-around;
				width: 100%;

				.img {
					width: 302rpx;
					height: 204rpx;
					background: rgba(0, 0, 0, 0.00);
					border-radius: 16rpx;
				}
			}

			.img_box {
				display: flex;
				flex-direction: row;
				flex-wrap: wrap;

				.imgs {
					width: 204rpx;
					height: 204rpx;
					background: rgba(0, 0, 0, 0.00);
					border-radius: 16rpx;
				}
			}
		}
	}
</style>